Go to the BP_CookingComponent blueprint and copy the video below.

Then in the Spawn Destruction Bag function copy the images below

In the BP_CookingComponent Class Defaults find the Inventory Details and tick on the Can Contain Items option.