ill give the short answer to this. millions depend on notepad. a small change , can have devastating effects. What if the editor doesn't respond to the same WM_XYZMESSAGE? what if your enterprise depends on an obscure app that modifies notepad.
So no, best option create a new editor, but there are 1000 editors out there.
look at sublime text 4.. its pure opengl. fast, and epic done right.