Returns the group for the window.
If the window has no group, then the default group is returned.
a window
the window group for this or the default group