Sometimes you open a document via “Recent Items” and you don’t know where the document really lives. You can ⌘-click on the title of the document, in the title bar, and get a drop-down menu showing you exactly where it is. If you slide down that menu and select something, you’ll open that folder. Handy. See below.
Some programs will give you “something” if you click and hold on the window’s title. Some have a little downward-pointing arrow that gives you other options. Worth exploring. But the ⌘-click always works.