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