There could be library of UI primitives and backend in logical language, then you would write declaration of what you want exactly:
- I want window of these size, with such controls
- when this button is clicked, text from this control appears in that DB column
and system figures out all details making it cross platform, fault tollerant, etc if all infra is coded on that platform