Object[] sel = new Object[1];
sel[0] = AssetDatabase.LoadAssetAtPath(directory, typeof(Object));
Selection.objects = sel;
EditorUtility.FocusProjectWindow();
sel[0] = this.gameObject;
Selection.objects = sel;
EditorApplication.RepaintHierarchyWindow();