Returns the flags set on the given window as a bitmask. The mode set with OpenWindow() is part of this mask.