Retrieves sizes of client area from window rather than hard coded value