Those either are not single-codebase-crossplatform or are architectured like a game engine. Yes Electron is not optimal but if you want a "rich" UI with fancy animations and custom interfaces for everything instead of a generic winforms-style UX then the browser is a good compromise. That or feel free to manually build everything using OpenGL/Godot/Unity. (Using a browser means you are shifting all the game-engine-level graphics requirement to a billion dollar company. The problem doesn't actually magically go away.
(And to be fair, UI development in XAML on Windows is not too different from HTML/CSS/JS i.e. no Drag and Drop absolute positioning, everything is relative with a constraint system bolted on top.)