Generally, in supernatural terms, it is the threshold and the strength of said threshold that keeps supernaturals out. Buffy was not exactly consistent in how it handled supernatural elements - show bibles; not just paperweights! - and the Dresden Files does it better.
In the terms of that series, there are public spaces and private spaces and the strength of the threshold on the latter varies. A school or shop would be a publicly space; they are intended to let strangers in, even the school. Similarly, the main entrance of an apartment building is a public space, and therefore accessible. The individual apartments are homes, though, and would have a threshold. A hotel is a public space too; too many strangers coming and going to gain a threshold.
Homes would have variable thresholds. Harry lives in a rented apartment by himself; his apartment therefore has a weak threshold because it lacks a strong family presence. Murphy lives in her grandmother's house, which has been a family home for decades and has a strong threshold. The Carpenters' house may well have the strongest threshold, thanks to the family, but even the strongest threshold won't stop normals or normal weapons.