[Extension core]Handle window resizing.