What does the extract extract event.target === document.documentElement

In the lower section of the code "event.target === document.documentElement", what exactly does it do?

(This script as a whole causes that if I click on a place outside the mobile menu, it quits, but this excerpt from the script I did not understand exactly …)

insert the description of the image here