The most obvious solution is to use one of the chromium/V8 based frameworks for the GUI and use the AOT compiled language for the application engine.
This actually works surprisingly well — I'm currently working on a replacement shell for Windows which has a D backend and an SpiderMonkey/XUL frontend (Firefox's xul.dll), communicating via JSON over a websocket (using the 'libwebsockets' C library on the backend).