unity serializedproperty code example
Example: drawing default serializedproperty unity
SerializedProperty element = [some serialized property];
var editor = Editor.CreateEditor((ChoiceAction)element.objectReferenceValue);
editor.OnInspectorGUI();