For reference.
macOS works a bit differently. Closing last window doesn't close application. This is indicated by small dot under icon of application in Dock. In such case pressing on application will open new window .
To restore previous windows in such case recently closed option can be used to reopen last closed window. It's available in History menu.