How would you make a ray collide with a Gizmos sphere (float)

I need help with trying to make a ray cast hit a gizmos sphere(float) and tell me that they are colliding.
I could use colliders but I’m trying to avoid that, because I want to keep those for physics not for scripted actions and I don’t want two collider components on one object.

if you mean Gizmos.DrawSphere you can not detect it with ray (nor colliders), they are only for debugging and they can not interact with physics.
also hey will not work at all once you build your game. again; gizmos are only for visual debugging for use in editor only,