Revert "Revert "Make accidental panel and panel widget deletion more difficult""

Authored by ngraham on Apr 20 2020, 2:19 PM.

Description

Revert "Revert "Make accidental panel and panel widget deletion more difficult""

This reverts commit 0a1eb00b4bf76f57fcc0ae0bb08562dad7853d6b.

This was accidentally commited to the stable branch, but we do want
it on the master branch, so revert the reversion of the commit on the
stable branch here on the master branch.