I tried to get to your document through its parent Window object. I accessed some read-only properties just to see if I could get in, but Ireceived the following errors:
?this.Application.Windows[0].XDocument.DOM
'((Microsoft.Office.Interop.InfoPath.Window2)(this.Application.Windows[0])).XDocument' threw an exception of type 'System.InvalidCastException'
base {System.SystemException}: {"InfoPath has encountered an error. The operation failed.\n\nDocument object cannot be accessed.\nNo such interface supported\r\n"}
?this.Application.Windows[0].XDocument.DataObjects.Count
'((Microsoft.Office.Interop.InfoPath.Window2)(this.Application.Windows[0])).XDocument' threw an exception of type 'System.InvalidCastException'
base {System.SystemException}: {"InfoPath has encountered an error. The operation failed.\n\nDocument object cannot be accessed.\nNo such interface supported\r\n"}
?this.Application.Windows[0].XDocument.DataAdapters.Count
'((Microsoft.Office.Interop.InfoPath.Window2)(this.Application.Windows[0])).XDocument' threw an exception of type 'System.InvalidCastException'
base {System.SystemException}: {"InfoPath has encountered an error. The operation failed.\n\nDocument object cannot be accessed.\nNo such interface supported\r\n"}