I recorded a video on which you can see what causes the creaking when closing and opening the lid in the Asus Zennbook Pro Duo UX582 laptop. When closing, the display frame rubs against the Screenpad casing. Exactly the same problem had occurred before, as a result of which the laptop cover and hinges were replaced. Unfortunately, after a few months, the same problem occurred in the new cover.
Please people who have UX582 have the same problem.