OnInspectorGUI Show Dictionary

I’m making a custom inspector for a component that exposes a dictionary as a public member:

example:
public Dictionary<string, CustomObject> custDict;

I’m trying to figure out a proper way to be able to allow the dictionary to be edited in the custom inspector. Is this possible? I know that public List<> are able to be edited in the editor, but not sure how to do this with dictionary types.

Not sure if this works for what you are doing, but maybe you could have an “Add new key” text field and then list all the added keys as object slots (with the keys as labels). I guess you would also need a delete key control as well. Unfortunately, this type of data structure doesn’t lend itself as well to GUIs as the array does, but maybe something along these lines would be useful.