No roof should be 100% flat, it should have a slope on it so the rain drips off?
If i remember correctly a flat roof has a pitch of 10 degrees and under.
But yes that be a good place to start as if the water can not drip down or of the roof it may find a small hole to enter inside.
I may have to lift the front legs up slightly see if that helps x