When a window is reopened, the last tab is reopened before the window is shown.