The StarDesktop object represents Office application. Some routines or user interface objects such as current window can be used via StarDesktop.
Dim docURL As String
Dim doc As Object, docProperties()
docURL = ConvertToURL("C:\My Documents\example.odt")
Rem com.sun.star.frame.Desktop
doc = StarDesktop.LoadComponentFromURL(docURL, "-blank", 0, docProperties)