Type t = Type.GetTypeFromProgID("esriArcMapUI.MxDocument"); IDocument mxd = Activator.CreateInstance(t) as IDocument;
IDocument mxd = New MxDocument()