On the topic at hand, using heroine to intoxicate one’s self is very victimless. Injection needles are sharp and carry disease. Alright, but scissors are sharp, sex carries disease and heroine was initially introduced and prescribed as a pharmaceutical. Social and economic externalities of drug use is highly subjective and difficult to isolate, which is among most rational arguments for legalization. Drugs always both solve problems and create new ones. Each situation is more than likely drastically different and impossible to readily comprehend, involved with and conflated with mental health, legal systems, moral judgements, embarrassment, fear.
Results of approaches actively considerate of this complexity (Portugal’s controversial policies come to mind) tend to suggest that the economic and social problems you mention may moreso be a result of simplistic accusations like the factory analogy.