I'm not sure how they built this thing, but it makes sense to me on the face of it: Notepad should be the thinnest wrapper possible around a simple textbox, and the generated thing they're showing should be built into the widget itself so it's exposed to all apps in the OS (much like macOS exposes emacs/readline-style shortcuts everywhere that uses a default textbox).