Classic dog behaviour that - they pick up on infrasound and electromagnetic shifts way before we do, which is why they're basically better ghost detectors than half the kit I've spent a fortune on.
The roof thing is interesting though, because nine times out of ten people jump straight to paranormal when it's actually thermal expansion or a fox, but the dog refusing to go out until morning is the detail that makes me sit up a bit. That's not a one-off startle response, that's sustained avoidance over several hours.
Did you notice any temperature drop inside the house? Any electronics playing up, lights flickering etc? I'd also be curious whether your dog was barking at the roof specifically or just refusing to cross the threshold - those are two very different behaviours and the distinction matters.
If you've got a decent mobile with a voice memo app, next time leave it recording overnight. You'd be surprised what teh audio picks up that you sleep straight through.