The header bar has two functions:
To move the EXACT Window
If a window is not maximised (does not occupy the whole screen) you can drag it around the screen from the header bar.
If you are using dual monitors, you can also use this method to move a window from one monitor to another.