The window title is the caption you see in the Titlebar of the window, in the blue rectangle. This window title can also be found using Spy tool.
| Notepad window title when no file is opened:
Untitled - Notepad
| Notepad window title when My Document.txt file is loaded
My Document.txt - Notepad