The tab might be removed before we can create the tab making the parent
invalid.
#1065 - [Feature Request] Pass openerTabId when creating tabs in order to know the parent
the `openerTabId` can also be seen as the tab's parent.
This is useful for extensions like https://github.com/piroor/treestyletab#1065 - [Feature Request] Pass openerTabId when creating tabs in order to know the parent
Create the new window with the default tab rather than an existing tab,
then pin the default tab. This allows any pinned tabs to be moved to the
new window because they're not allowed to be moved after a un-pinned
tab. The default tab is automatically closed later in `moveTabsToWindow`
because it's not a part of the container.