Calculate window content and titlebar/toolbar height rather than using constants.