It might be worth to point out that "doolhof" is literally the Dutch word for maze. According to etymologiebank.nl it originated in the 16th century, as a composition of "dolen" (wandering, having lost the way) with "hof".
Which means (court)yard. In some languages, it exclusively means the royal court. Its origin is apparently obscure, but I am guessing it derives from the Nordic word for 'head' ('huvd' in Swedish), which is also the base for the nordic word for ruler ('hovding' in Swedish).