How to prevent plasma from minimizing window when clicking on empty space in top-left or top-right corner?

When I’m using Chromium or VSCode and click on empty space[1] in top-left or top-right corner window become minimized and moves in top-left/top-right corner of my screen respectively. How I can turn off this behavior?

[1] By “empty space” I mean empty space in application itself, not in title bar.

i would review my window behavior settings, you might have something set to minimize window instead of pass click thru to the app.