@lobsters I think #GNOME Builder (and the newer GNOME stand-alone CLI utility and library) do something similar by using SDK distributed and packaged as Flatpak extensions (which use bwrap under the hood).
(Sidenote: anybody care to share me a lobste.rs invitation? TIA, much appreciated!)