Barney Runs for Sheriff - S5-E21
Other mistake: When Floyd tells Barney that he doesn't want to put Barney's campaign poster in the barbershop window because it spoils the decor, the reflection we see in the mirror behind Floyd is the church's front door and steps. This makes no sense at all because the reflection should be whatever is to the right of Floyd's, but the church is the opposite way - to the left, past the courthouse. The view in the mirror is a painted backdrop, but it's still quite wrong.
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.