Returns the index of the last window the app opened.
See the Window function for an example.
Window function; Window class.