https://demosngcomsgblog.blogspot.com/2024/01/unpinning-div-on-document-click.html
Unpinning A Div On Document Click