res:dock:: add smart hide.

tower: https://tower.im/projects/8f19f0bf0e754f0b82ef2c24bc230973/todos/d85d65e38fc14bcc848b794a74e09ab1/

Change-Id: Ia380c446a1e55f63b5c47f95586493c40be3a476