FvwmButtons (a module of fvwm window manager) has the Swallow function, that embeds the window of an application into a panel.
I have to do something like this with
It looks like you are looking for the XEmbed protocol, documented here.