Does LibreOffice load extensions in Headless mode? Can it be detected?

Does LibreOffice load extension in Headless mode and if so can headless mode be detected in code (python)?

Am writing an extension that runs on OnStartApp or onFirstVisibleTask event. It moniters when the window first becomes available (via XWindowListener) and then display progress to user via dialogs.

If extensions are installed in headless mode then I would like to detect this and run the code without needing a window to be available in that case.

After Testing this the answer seems to be NO!

LibreOffice does not load extensions in headless mode.