"He knew that it was raining as the roofs were wet." Correct?
"He knew that it had been raining as the roofs were wet." Corret?
She could be looking out of a window and able to see that they're wet, and the light isn't good enough to see whether rain is falling because it's a light drizzle. Maybe