Implement hiding inventory windows by double click on caption (Fixes #1690)