'Create a parent container for a single window in i3

Is there a simple way to create a single child container wrapping a selected window in i3 ?

Let's say following is my container hierarchy:

         Root
       /      \
TabContainer   Vim
    /    \
 Brave1   Firefox 

I'd like to create a container for vim:

         Root
       /      \
TabContainer   (Tab)Container
    /    \          \
 Brave1   Firefox   Vim

So that now I can open devtools for brave/firefox and shift it right into the same tab layout as vim without needing to juggle windows across multiple workspaces.

             Root
       /            \
TabContainer      (Tab)Container
    /    \            /       \
 Brave1   Firefox  Devtools   Vim
i3


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source