Is there any benefit in putting "#if UNITY_EDITOR" around the OnDrawGizmos method?

Is this method automatically stripped out by Unity upon building? I know it can’t be called from a build, but is the code still present? Is there any reason to wrap it in the compiler tags?

I do this as well, even though it probably does not matter. The compiled code might be a few bytes bigger.

If you have Code Stripping enabled, this unused function should be excluded from the build automatically since it is not referenced anywhere.