TYPING: pandas/core/window.py
- [x] tests passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`

Includes simplifying some code paths
Thanks for reviewing @WillAyd! 