Aunt Bee's Invisible Beau - S5-E27
Other mistake: After Andy talks to the butter and egg man in Mt. Pilot, when Andy gets in the squad car with Barney all the car doors are closed, but in the closeups from outside both sides of the car, note that both triangular vent windows are missing - the two doors are actually open for these 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.