Rain will of course get in. The housing under the bonnet takes the air from one side to the other to feed the heater intake. Water is supposed to drain out the bottom when the bonnet is closed. With the bonnet open, at the front edge of the housing should be drain channels. If water is getting onto the engine, these are likely to be blocked with dead leaves and similar debris. Hook out all the compost and all should be well.