There is a class of psychoactive compounds (psilocybin is one of them) which, from what we can currently tell, increase neuroplasticity in the brain at least to a degree.
This has not just been studied with depression and so on, but with a wide range of phenomena where we've known that relative rigidity (compared to our childhood) of our brain stood in the way of one thing or another. One example that always comes to mind is this study on learning perfect pitch (something that is widely considered to be picked up in early childhood for one reason or another, and if you didn't get it, you're out of luck): https://www.ncbi.nlm.nih.gov/pmc/articles/PMC3848041/
The problem with neuroplasticity is that it doesn't just open up your brain to be reprogrammed in positive ways. This is why self-treatment with magic mushrooms and so on can actually be a damaging effort and you should instead try to find a psychotherapist who either specializes in this sort of treatment (if you can find one) or at least one who is willing to assist you along the way.
If you know people who do drugs recreationally you probably know at least one story of someone who took some drug and induced some kind of psychosis with lasting aftereffects, and those kinds of events are probably related to this.