Getting a pointer to the current main editor window in a plugin?

Sadly, for better or worse, pretty much everything about the editor state can be accessed by the GEditor singleton. For your use case, GEditor->EditorWorld is what you want.

Cheers,
Michael Noland