Add a selection-check-function and a setter
The selection-check-function is a lambda function and will be defined
outside of and given to the node selection dialog via the setter.
Depending on the condition, a hint / information string will be written to the dialog widget.