Bug: Grapesjs WYSIWYG editor modal closes when clicking outside, without warning (UX, usability)

Your software
My Mautic version is: 5.0.4
My PHP version is: 8.1.27
My Database type and version is: 10.6.16-MariaDB-0ubuntu0.22.04.1

Your problem
My problem is:

Clicking outside the WYSIWYG editor leads to it closing, and you lose all changes.

This is extremely frustrating.

Set the “persistent” attribute (as it’s called for Vuetify: https://vuetifyjs.com/en/api/v-dialog/#props-persistent), or equivalent, on the modal to prevent accidental loss of work

These errors are showing in the log:

Steps I have tried to fix the problem: