Common logic in a language like C or C++, and bindings to the native widgets.
Are there any other cross platform languages with bindings to native GUI frameworks?
And is also doable with Go, D, Rust, Java, .NET, just someone does need to write the FFI code.