No happy, fulfilled person is going to say one day "I think I'll go be a heroin addict." People who can't get their basic needs fulfilled use drugs (and other addictive things) as a substitute for the fulfilling things they can't access for other reasons.
What about people who are homeless because of drugs and alcohol? Is it morally justified to be codependent?
You've got it backwards. Drug addiction is a symptom of unfulfilled needs, not so much the other way around. See this short video on the "Rat Park Experiment".
No happy, fulfilled person is going to say one day "I think I'll go be a heroin addict." People who can't get their basic needs fulfilled use drugs (and other addictive things) as a substitute for the fulfilling things they can't access for other reasons.
Here is an alternative Piped link(s):
this short video on the "Rat Park Experiment"
Piped is a privacy-respecting open-source alternative frontend to YouTube.
I'm open-source; check me out at GitHub.
Can you explain how never giving a homeless person any money will elevate them from their plight?
If not, then giving them money is, at worst, incidental and, at best, an improvement to their situation.