I think the easiest way would be to hack the Core … but changes would be lost with an update.
You could fork so the changes wouldn’t get wiped … but very bad idea
I have been working on a plugin It’s very much pre-alpha but feel free to study it in hopes it can give you an idea of how to write your own plugin.
https://github.com/Mittineague/discourse-newpage