I have used D&D for my own therapeutic healing on a few occasions and I'll confirm that going in with the mindset to express what you are unable to in other environments is helpful.
Then again a good therapist, physical exercise, spending time with supportive friends and family, religious worship, meditation, belonging to a community, and possibly drugs are all elements in recovering from mental illness.