Add a new interface for clients to implement dropdown windows

This is a first draft, further developments of the protocol are
needed.