Robert Douglas, Provost of Lincluden — Scottish landowner, courtier and administrator