Great idea @eoinparkinson! I used this for a custom popup dialog with a list viewer.
the code is super simple