That has been tried before. We stopped doing it because of how horrible it was. The homeless are better off than in the institutions of old.
I don't know if modern institutions could be better. However we know they failed in the past. If you want to propose them again, you need to provide some proof that they new ones will be better than the old.