It doesn't need to be a city. I've thought about this idea myself, pick a state with a large amount of empty land and construct housing, addiction and mental health services in a single place. A massive complex for those unable to care for themselves in society.
It would cost billions but it already costs billions nationally to care for the homeless. With lower wages and land values you'd have large cost savings and that's before economies of scale.
Let the addiction specialists and mental health professionals set the rules here. They would be limited by the constitution but would be able to enact laws for this very specific segment of the population. A low trust society encased within a high trust society.
At that point cities would be free to enact laws to the effect of "get help in the complex or go to prison" when they catch the homeless committing crime. Homeless no longer are a blight to the cities and the homeless get the best help we can offer.