
Continuity mistake: At the end, when Andy walks in on Barney showing Gomer how to draw his gun, Gomer draws his gun out of the holster which sends it flying behind him, and in the closeup the bookcase glass shatters, but in the wideshot when they all turn to look the glass is still perfectly intact.
Visible crew/equipment: When the partners of the two men locked up in the jail drive up to the courthouse and park, the reflections of two crew members are visible on the car's vent window.

Continuity mistake: When Gomer drops the gun from the roof it lands on the ground directly in front of Andy and Barney, who are standing on the sidewalk beside the courthouse, but the area where they're standing looks different between the overhead shots and closeups, and their shadows change as well. Additionally, the gun lands with its handle to the left, but in the wideshot the gun is lying the opposite way, with its handle to the right.
Revealing mistake: The jailed criminals take the key and open the jail cell door. The problem is the dead bolt never moves with the key, showing the door was never locked to begin with.
Revealing mistake: Before Barney jumps out from behind the crate to surprise the two cops in the alley you can hear the director yell out "Don".
Answer: As noted in the previous answers, in real life, things like this provided wind and/or rain deflection, and also maintained a bit of privacy when blinds were raised somewhat. The interior courthouse set was located in the studio, so the "outside" Main Street didn't exist. I believe these things were added to the courthouse windows for practicality, to avoid some crew movement being visible on the opposite side of those windows. These are not "window boxes" to hold anything, as they're actually bottomless; we can see the Venetian blind's long pull cords under them. They're made of plywood and simple to build, so the "material and labor" was inexpensive. Similar variations made of different materials are in other movies/shows. In 1957's "12 Angry Men," textured chicken wire glass panels are in the jury room windows, and in "Jesse Stone: Night Passage" another type is in Jesse's office windows.
Super Grover ★