Your roof probably provides him with an excellent view of the surrounding area and keeps him safely out of reach of most predators. There may or may not be a hen on a nest nearby. Male mallards do not help out with the incubation of eggs, so his presence wouldn't indicate that there is a nest. As long as he is not causing problems, I'd advise to just enjoy his company while he decides to stick around.