As of right now, you can decide whether a container only allows a specific type of item to be moved into it by dragging with .DefineSwitchValidation().
But having a container only allow a specific type of item when a new item is added with AddItem() has not been added yet. An update is in the works.