That drop-down is populated by using reflection to search for all types derived from the SharedVariable Type. You should be able to do something similar for your own component. If you want to get all of the variables for a specific tree you can do that by looking in the variables field of the BehaviorSource within the BehaviorTree component