Seeking Help: Fullscreen Mask Overlay in Obsidian Causes Window Dragging and Resizing

Hello everyone!
I am trying to develop a plugin that will have a fullscreen overlay covering the entire Obsidian interface.
I’m encountering an issue where, when the mouse moves to the top bar layer, especially in areas without tab labels, clicking the mouse can drag the entire Obsidian window, or double-clicking can change the window size. I tried using event.stopPropagation(), but it didn’t work. Has anyone encountered this issue before? Thank you so much!

ScreenToGif Website

Supplement: When I added a click event to the document for debugging, I found that clicks only do not trigger when clicking on the top bar in areas without tab labels; everywhere else it works.