laiz When you close last window and click on App icon from dock, it will always open new window, like any other existing browser.
If you want to reopen closed window, you will need to use CMD+Shift+T
or "Open Last Closed Window" from History Menu.
And if you want this to remember your tabs always, then please saved your temp window to a Saved Window.