Now that SDLMAME has -attach_window, we can do this:

[Linked Image from i.imgur.com]