In the article below, the main argument is that drug addiction from illegal drugs is not essentially different from addiction from legal drugs, or even from certain behavior patterns. Thus, there is no medical reason why they shouldn't be considered to treat various psychological illnesses.
https://aeon.co/ideas/we-need-ecstasy-and-opioids-in-place-of-prozac-and-xanax