[SHIMGVW] Improve window size handling