Fixed appWindow ID for multiple created windows

I didn't know at the time we could create multiple windows within the Text App. 
This change addresses the issue and remembers where were positioned all closed windows.

TEST=
Open three windows with <Ctrl>+<Shift>+n
Move them
Close them
Reopen three windows, they should be positioned where they were before being closed.