Ever wonder how unity makes assets in the project window pop out when you select a link to them in the inspector? See the EditorGUIUtility.PingObject method.
[MenuItem("Examples/Ping Selected")]
static void Ping()
{
if (!Selection.activeObject)
{
Debug.LogError("Select an object to ping");
return;
}
EditorGUIUtility.PingObject(Selection.activeObject);
}