Perhaps if they had housing and sufficient social nets so they didn’t have to steal to eat and places they could get managed drug doses (you can’t just quit, especially without resources) then this wouldn’t be a problem.
It’s not like people choose to be problems and homeless. Almost all Americans are one or two bad turns away from joining them.