The Arrest of the Fun Girls - S5-E28
Continuity mistake: When Helen and Thelma Lou walk into the courthouse and find Andy and Barney dancing with Daphne and Skippy, there are lipstick marks on Barney's cheek, but when Andy gives Skippy her sweater and radio then tells them both to go, in the closeups the lipstick marks are gone, though they reappear momentarily.
The Arrest of the Fun Girls - S5-E28
Continuity mistake: When Daphne and Skippy drop in on Andy and Barney at the courthouse and want to "play jail," Skippy carries the radio and her sweater into the jail cell with her, but when Skippy asks for her ukulele we see the radio and sweater are now on the side desk, under the gun case.
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.