Focus the preview window after changing its size.