I found on a tips guide in Unity that I can do:
#if UNITY_EDITOR do_something() #endif
do_something() will only be executed on Unity editor. Even more, when I build the game, that section of the code won't be compiled.
I found that as something very interesting, I thought it could be useful for example to use it on DrawGizmos methods since they can only be used on Unity Editor, and you don't need them on a finished product.
What has it been designed for? Is there anything bad that could come from using it?