I've been wanting this for a long time, however, it would be really great to have some kind of standard so that multiple terminals might eventually implement the functionality. Even more awesome would be great if the api was a bit more generic so that any window could be embedded within the context of a terminal in much the same way that images are embedded with the kitty graphics protocol¹. With appropriate alpha channel support it could even enable seamless/borderless objects, potentially with non-rectangular shapes.1. https://sw.kovidgoyal.net/kitty/graphics-protocol/
edit: I see the protocol² is very well documented. Better yet, it looks like a really powerful and well thought out interface. Well done! It would be really awesome if this catches on.
2. https://github.com/not-elm/orzma/blob/main/docs/orzma_webvie...