I think writing really helps you heal yourself. I think if you write long enough you will be a healthy person. That is if you write what you need to write as opposed to what will make money or what will make fame.
But being in the closet uniquely assisted me in politics. From my first run for the state legislature until my election as governor all too often I was not leading but following my best guess at public opinion.