Giving money to your local homeless shelter encourages homeless people to move near you (see San Francisco). Making a lot of risky investments in businesses encourages people to start new businesses. One of these has positive second order effects on economic growth.
Neither helps homelessness. Building more affordable homes is the solution. Which also has 2nd order effects.
The vast majority of homeless people in the Bay Area are from the Bay Area. https://www.spur.org/publications/urbanist-article/2017-10-2...
There is lots of homelessness because housing is expensive. https://www.noahpinion.blog/p/everything-you-think-you-know-...