At least around here, those homes are shelter homes, low income housing, special needs housing. They are someone's home, and should be respected as such. IMHO.
Is something legal or illegal is generally clear cut. Unless you're rich. Then you can afford a bunch of lawyers to dispute the law in your favor. I always believed that was one of the biggest benefits to being rich.