Distrobox let's you do the same(using docker or podman) imo and is pretty good.
[0] I was exposed to it via Fedora Silverblue, where something like it is a necessity since the base OS is immutable. I've found it very useful even outside that use case however.
[1] Seems to me you could even use bwrap if you were reluctant to use syscalls directly.
[2] having done a little research towards creating my own tool because I'd rather not depend on a package that isn't available in many LTS distros, among other reasons.