document-panel: always select the corresponding tab

When dropping a not selected document row, we must be sure
that the corresponding tab is selected