As Lisp, Smalltalk, Dylan and Postscript have proven during the early days, it is possible.
The problem is that current generations cannot see beyond their vi/emacs CLI setups and are too invested into HTML/CS/JS stacks to see otherwise.
Some quickly picked examples,
https://en.wikipedia.org/wiki/NeWS
"Smalltalk usage for UI prototyping in Thales industrial context"
https://youtu.be/Oq1RSDn2P5Y?t=1030
"Interface Builder's Alternative Lisp Timeline"
https://news.ycombinator.com/item?id=21828622
Which by the way, makes the binding Objective-C / Smalltalk /Lisp in UI design.