Ubuntu 24.04 Sandboxing and Window Frame issues

Trying to launch the Cursor IDE in Ubuntu 24.04, starting from 0.4x to 0.50, leads to the following problem

The setuid sandbox is not running as root. Common causes:
  * An unprivileged process using ptrace on it, like a debugger.
  * A parent process set prctl(PR_SET_NO_NEW_PRIVS, ...)
Failed to move to new namespace: PID namespaces supported, Network namespace supported, but failed: errno = Operation not permitted
[3821042:0527/132536.492174:FATAL:zygote_host_impl_linux.cc(207)] Check failed: . : Invalid argument (22)
Trace/breakpoint trap (core dumped)

When I work it around with the --no-sandbox option, then the launched window has no frame around it. So, I cannot move/resize the window or interact with the menus such as file browser etc.