I think the idea would be to not let homelessness happen in the first place and having strict drug laws that would severely punish people who engage in drugs. Soft-on-drug policies do not work and we've been told lies for last 30 years. The results are extremely clear. The only answer to that doesn't have to be some socialist state of affairs. Plenty of highly capitalistic societies work fine, in fact evidently far better than instituting California-style socialist state.
The whole mechanism is meant to gain votes. There is no humanity here. We have the same interests, to make better and productive citizens. Legalizing marijuana and normalizing hard drugs are doing the opposite.
In next 20 years, we are going to find out the disasters of legalizing marijuana from the standpoint of GDP per capita. It is going to decline as population revels in lethargy and lack of productivity.