Select Element in ScrollView of EditorWindow

I am working on an EditorWindow. I want to create a ScrollView and to know which elements have been selected in the list.

In my last ScrollViews I used buttons for each single element inside the ScrollView. But I am sure, there must be a possibility to select elements without having this workaround with the button to know which has been triggered.

The ScrollView also changes the color of the selected element to blue by default, so there is already a functionality, I am just not sure how to access it.

Does anybody know how to get there?