Most waxes will have UV protection ... so, that wouldn't be good. Not sure about RainX.
You'd have to experiment with it with 2 side by side panels to see if performance is affected .... and then factor in how much difference it makes by the panels staying more clean.