Some helpers that have been useful while making editor plugins for Unity3D