This is one of the reasons I moved to a hardside bag. It is not waterproof, but sitting outside with rain coming down won't bother it or the contents inside.
I never have a carryon that I have to worry about gate checking, although if it ever did happen, I'd be sure to get all the valuable electronics out before it left the cabin/jetway.