What I did was to open the snapping menu at the top, clicked on “Face”, ticked “Align rotation to target”, and also turned on snapping. Then I just moved the window to the face where I wanted it to be placed. The window did face the wrong side out, so I just rotated it 180 degrees on the X-axis.