Andy's Rich Girlfriend - S3-E2
Visible crew/equipment: After Andy explains to Barney why he's taking Peggy to a nice restaurant 55 miles away, when Barney walks away from the cell we can see the leg and shadow of the tall wood ladder (presumably the crew's) at the right side of the screen, but when Barney and Andy are by the front door there's no such ladder behind Barney in his closeups.
Answer: Those "boxes" are valences that used to be very common, before air conditioning. They allow for windows to be open during rain storms. They permit air circulation, without letting the rain in.