A buddy of mine up north is building what is basically an autonomous capsule hotel with a breathalyzer on it to carrot-and-stick his way into providing very cheap accommodations at the ends of public transport lines. Alcohol obviously isn't the only drug homeless folks have problems with but it's by far the most common, especially up there.
He says the biggest cost is heat. I'm rooting for him.