I think he is saying his 50 amp plug receptacle gets wet. ( but it is kind of hard to follow?
That receptacle should be replaced assuming it is properly connected.
At the same time, I believe I have in my setup which I modified to do exactly what he wants. I make the mod because I did NOT want a hard wired surge guard. I bought the 34951 Bluetooth and it was pricey; so I never wanted it outside. In my case, my ATS is in dedicated compartment that I call Electrical Bay. I bought a 6ft 50 amp cord that was ready made to connect direct to ATS. The other side I simply keep curl up inside the electrical bay plugged to my Southwire Surge Guard. The actual Shore power cord is plugged into pedestal on male end and the female end comes thru a 4 inch deck hole on the bottom floor of my electrical bay. So it plugs to my 6" extension inside the electrical bay which is always dry
But I did this for two other reasons.
#1. My Portable $400 Surge Guard is always concealed and locked.
#2. I no longer had to pull that long & heavy 50 amp shore power cord all the way back through that 4" deck hole to put the shore cord back up in Electrical bay. Today I just roll it up and toss in the electrical bay, which is what I think OP means by his generator compartment would be perfect.