Sounds like they're exceptionally difficult when you don't house them as they end up in contact with police or medical staff.
Sometimes the best answer is to just give them their own space instead of a shared facility.
I've had plenty of contact with the homeless, have housed them in my own home for a night or three. They all have at least some kind of substance abuse problem (every one smoked, for instance). But if you push them out on the street, they'll end up eventually in the ER or in contact with police. This is way more expensive.
Highly dysfunctional people generally become less dysfunctional when they're housed, but they also become your problem. In an ideal world society would see the benefits, but in the real world, you're going to have to deal with an onslaught of problems. The neighbours are going to kick up an enormous fuss if the guy down the hall is stumbling around drunk at all hours of the day and night. The police are going to be all over you if your property turns into a crack den. You've got liability issues if one of your residents burns the place down.
Housing is a crucial part of the response to homelessness, but it's only a part. Some people can walk straight into a home and get back on their feet, but some people will need intensive support and others just aren't ready to be housed.
Sometimes the best answer is to just give them their own space instead of a shared facility.
I've had plenty of contact with the homeless, have housed them in my own home for a night or three. They all have at least some kind of substance abuse problem (every one smoked, for instance). But if you push them out on the street, they'll end up eventually in the ER or in contact with police. This is way more expensive.