To solve the homelessness problem we first need to help these folks recover their health.
A drug addict with a house will still be a drug addict, the only difference is we won't see their struggle on the streets.
Seriously, if you have ever dealt with addiction you know when you are sick you can't even do the dishes or wash yourself, so how are these guys, just by getting a home, going to manage to get sober, find a job, pay the bills and eventually be able to support themselves and move out so that the next person in need can use the place?
Unfortunately the answer is very unpopular and controversial.
A drug addict will never voluntarily quit drugs and check themselves into rehab then follow a long, difficult treatment to get sober.
Addiction is an awful, depressing, humiliating and painful disease with momentary lapses of reason where many times you just want to put it all to rest with an overdose.
The most frustrating part is the resources are there, we can build SoTA facilities and run the programs and treatment plans these guys need, even customize them if necessary.
But again, we will somehow need to bring them in, most likely by force, and that's the part many in this country can't even consider for debate.