Could sometimes be useful to show/hide the detail panel from InfoWindow using code.
In my usecase, i call it from a button which switch from multi to single selection mode.
When in single mode, detail panel is displayed.
When in multiple selection, it is hidden.
nb: I can provide code if interested