The way I see it, there is a FormControl behind the lookup, which is implemented under Resources:
Behind it is an HTML and a JavaScript file:
Where/how is it defined in that the FormControl “Calendar” is used as the lookup for date fields? In general, the lookup is probably used “automatically” as soon as a date field is displayed somewhere on a form.