DOC: Update documentation for window parameter of rolling() to account for all possible data types
- [X] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
- [X] Added [type annotations](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#type-hints) to new arguments/methods/functions.

Related to https://github.com/pandas-dev/pandas-stubs/pull/385
Thanks @gandhis1 