You can use XOAUTH with IMAP just like any other IMAP client (including Thunderbird, as I noted above).
You should be able to use the Bearer Token standard from RFC7628 rather than XOAUTH which is something Microsoft cobbled together, but either will probably work on most systems, just one of them is better documented.