If you set
PHP Code:
clientrelative = true;
in the GuiWindowCtrl, the origin starts at the background of the window.
Edit: Wiki info:
PHP Code:
clientrelative - boolean - by default false; if enabled then sub-controls are positioned automatically to not overlap the header or the borders; use clientwidth and clientheight to get the available space for sub-controls