Factual error: Andy tells the hobo "that will be the 3:45 stopping for water", meaning its a steam locomotive, but by the time this episode was made railroads had long since switched to diesel.
Continuity mistake: At the beginning of the show, Andy notices a wanted poster on the office bulletin board and tells Barney that he had learned from news accounts that the wanted person had been captured. Barney removes the poster and places it in a file cabinet. The next day when Roger reports for duty, he and Barney are looking at the bulletin board and the wanted poster is back up.
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 ★