[Typing] Enhance the WriteExcelBuffer protocol to be compatible with io.BinaryIO
- [X] closes #58424
- [X] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [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.


> Would you mind also doing a similar PR in `pandas-stubs` ?

Sure, here it is https://github.com/pandas-dev/pandas-stubs/pull/912