From a non-american perspective it seems to me that in the US the problem of homelessness often gets mistaken for a problem with the homeless, maybe changing that narrative is a starting point?
With drugs in the mix things get complicated. Many cities tried giving these people free homes/rooms but because drug laws were strictly enforced there the homeless chose to stay on the streets. You’re not going to get rid of the fentanyl and meth addicted homeless unless you do it by force.