There is a related issue for multi contexts from a single window which may be of interest:
along with a question on this forum:
I have an in-progress branch:
The functionality is mostly complete, but I need to update the docs and choose a better name prior to submitting a PR.