It's both! There is a subset of homeless who are addicted to drugs and a subset that isn't. It is oversimplifying to reduce homelessness to a drug problem. Lower housing prices would help most homeless (and everyone else who pays for housing).
https://vancouver.ca/files/cov/vancouver-homeless-count-2019...