Add modal autofocus example

Seeing #14989, this also seems like something worth documenting - at least IMO.