AllowDoorsOnCategories will restrict door placement so that it can only happen if the door connects the main part with another part that has the TypeCategory specified in AllowDoorsOnCategories. So, a part with AllowDoorsOnCategories = [yes] will only allow doors to be placed on parts connecting this part if they have the type category yes.
Example:
AllowDoorsOnCategories = [corridor]
It would also be good to have a similar parameter called ProhibitDoorsOnCategories, which is basically the inverse of AllowDoorsOnCategories.