window: Add rotate method.