_doOpenTab (rawDocument, options, selected) {
    const { _accessor, _openedFiles, browserWindow } = this
    const { menu: appMenu } = _accessor
    const { pathname } = rawDocument

    // Listen for file changed.
    ipcMain.emit('watcher-watch-file', browserWindow, pathname)

    appMenu.addRecentlyUsedDocument(pathname)
    _openedFiles.push(pathname)
    browserWindow.webContents.send('mt::open-new-tab', rawDocument, options, selected)
  }
Open a new new tab from the markdown document.

@param {IMarkdownDocumentRaw} rawDocument The markdown document.
@param {any} options The tab option for the editor window.
@param {boolean} selected Whether the tab should become the selected tab (true if not set).