adility to resize a window deprecated