I also do this with almost everything I write. I always have a Sublime Text window open with a bunch of unsaved tabs that I use as a buffer space for everything and copy paste it when I’m done.
Another reason is persistence. If a webpage decides to refresh or my browser or system crashes, my textarea content is gone. Sublime Text remembers those unsaved tabs no matter what.
Sublime does this incredibly well. I’ve got windows open with notes that I created a couple of years ago and haven’t explicitely saved. They’ve survived restarts, Sublime upgrades, whole-OS upgrades and everything inbetween.
Random thing. Tridactyl for firefox lets you open the contents of a text box in an instance of $EDITOR. Save and quit and the text box contains whatever you wrote in buffer. I believe several different addons for multiple browsers provide a similar feature. I find this a nicer experience for formatting and editing. It basically just automates what you are already doing.
The macOS app Raycast has a “Floating Notes” extension that I frequently bring up with a keyboard shortcut for smaller messages. The text gets persisted and it is very lightweight and floats on top of other windows.
Before that, I have also used Sublime Text (and I use it for many other things except coding, which is kind of ironic).