How does wine determine to draw non-client area according to managed mode setting?