[core] Resize window around center, not corner