RainX can destroy some lens covers so best to avoid.
Rain hat is probably best to use if you don't have it covered some other way.
Just keep in mind there will always be that storm that winds push the rain horizontal so it may still get hit.
Or get the PTZ cams with wiper blades lol.