I am continually reminded of how performant and flexible GPU-rendered custom GUIs have been for the programs that adopt them, primarily Blender and Godot. They spin up an OpenGL/Vulkan window and render totally custom widgets, and can construct exactly the GUI they want, when they need to. It's all C++, however, so that's always a big task.
I'm wondering if something similar could be possible with a Cairo-like drawing approach, so custom elements could be defined via SVG or what-not and then compiled into draw instructions.