Water in the frame

I’m pretty sure I just dumped almost a cup of water out of my frame’s cable holes. I think I got all of it out. Any tips to keep it out of there?

Just always let your frame “drip out” at various positions (upside down, left side up, right side up, etc.) after a rain ride or a spray wash.