Since folders were introduced into the project window tree, there seems to be a bit of confusion between the name some functions require and the name the function returns.
Take system.gui.getWindow for example. To find a window it requires the window name - this is actually the full path to the window, including any folder names. If you then look at the name property of the window reference it returns, it only contains the actual name of the window, not the path.
It would be nice to have a ‘path’ property for the window reference and it might make more sense to refer to the path rather than the name in the documentation.