Lockhart, TX's, urbanism problem is not the courthouse at the center of its civic square. That part is fine. The problem is the urban fabric surrounding it.
The problem begins with the parcels. Their street frontages are too narrow, encouraging buildings to extend deep into the lot and consume most of its area. That geometry leaves little room for interior courtyards, gardens, or mixed use programing.
The buildings are also too short and overwhelmingly commercial. Downtown therefore lacks the residential population needed to sustain public life throughout the day and week. Too few people actually live there to animate the streets, use the square, support local businesses, watch over public spaces, and turn the courthouse district into a great neighborhood. Where people live.
This is probably why there are many empty storefronts. It could be a great neighborhood, though, with the right zoning overlay, and maybe a few adjustments to the street layout, some new parks.
See Lockhart Texas for a uniquely American urban form. Courthouse in the center of a central square. Everything reinforces each part at all scales. Very successful and unique form. Centering justice.