I'm trying to use this in a project. I thought I could inherit the LookupInputWidget class but it turned out that you are suppose to extend TextInputWidget and use it as a mixin which wasn't clear.
A visible demo would really help with understanding this, preferably on a nice website like T85466
(see https://gerrit.wikimedia.org/r/181225 for the story of my struggles)