When the last tab is closed the window will be kept open if the file browser is shown. It will close the existing document and replace it with a scratch document.