The player viewing the UI.
The ID of the category to duplicate.
A promise that resolves to 0
if the previous menu should be closed, 1
if the previous menu should be reopened, or 2
if the menu before the previous menu should be reopened.
If sourceEntity is not an instance of the Player class or an instance of the executeCommandPlayerW class with a Player linked to it.
The function performs the following steps:
editCustomAreaCategory
to allow further editing of the newly created category.
Duplicates a custom protected area category.