res:dock:: fix tooltip problem.

closing preview will lead to tha fact that tooltip shows failed.

reason:
setting the dock state to non-hover on Preview_close_now.

solution:
add a global variable $tooltip to hold tooltip.