that is exactly what this is intended for :)
look at this dockerfile: https://github.com/mody5bundle/capps/blob/main/container/san...
and this "config" lines
https://github.com/mody5bundle/capps/blob/aec6a118139c2008c3...
this will start a cheap "sandbox" aka a gnome-terminal window with its own filesystem and process tree.
you just have to change the config file to mount a volume on the paths you want and maybe tweak the image to your likings :)