the controller is well sealed, so it can resist a little amount of water but not for long, the water needs to be drained.
If you don't want to keep the cabletie on the lid of the controller box, you need to drill a 5mm hole at the lowest part of the controller box to channel the water out.