Considering a letter for my ex that ghosted me?

Really long story short
I treated my partner like nothing, I was possesive and I acted selfish only carying about myself. This resulted in many fights until one day she stopped all contact completly. This got me really upset since I felt entitled to a answer, I tried to contact her numerous times but everything resulted in a block.

Something like 2 months go by and I finally realize what I've done, I regret my behaviour
completely and I finally understand why she would ghost someone like me.
However I really want to send her a apology letter telling her that i'm sorry for everything.
Is this a good idea?
Considering a letter for my ex that ghosted me?
Post Opinion