jQuery Migrate generates a false warning "jQuery.fn.offset() requires an element connected to a document" when the element in question is the root element (<html> / document.documentElement). OOjs UI PopupWidget code ends up triggering this in some cases (e.g. with https://gerrit.wikimedia.org/r/#/c/352071/ at Special:Preferences#mw-prefsection-rc when clicking the help icons). I'm pretty sure our usage is entirely safe (it works fine when I remove jQuery Migrate).
Minimal test case: open any page and run the following in the console:
$( 'html' ).offset();
Expected output is {top: 0, left: 0} with no warnings.