I once looked at what needs to be implemented to implement a text control interface in Mac OS and it was an API with hundreds of methods.
GUI frontend development IS complicated. There's so many edge cases with text rendering, editing logic, layout, state, native compatibility.
I started writing the beginnings of a flowing rendering engine using WxWidgets in Python using an algorithm from the ORC Solver whitepaper.
IntelliJ Idea, Netbeans are intricate advanced frontends and they are both written in Java.
How would a user interface written in a functional language look? I used to use Xmonad as a window manager which was very powerful and easy to use but it is written in Haskell.
I think any frontend technology that wins needs to be simple and easy to comprehend. I have yet to use Flutter.
I did have a frontend in Electron but my code was awful.
I would rather create user interfaces with a simple language and use a fast language for the data crunching. I think Python and Java count.