I use aerc with o365 via davmail and mbsync. Using imap directly was to slow, but pulling mail to a maildir works well. Davmail handles all the o365 interaction and supports mfa directly.
I don't know what davmail or mbsync are, but I'll look them up and have a go at this when I find time.
If you had any nice links to help me on my travels, I'd be very appreciative :)
I guess it should also work on Windows.
Use Davmail to create a standard IMAP interface to O365, then use mbsync to poll your email account via the Davmail IMAP server and write the messages to a maildir that you can read with most any MUA.