You can not use mouse_map over the border or title bar. That's a DirectX function and only works within the Window.

Changing the mouse cursor over the title bar or border is automatically handled by Windows. Thus, it switches to arrows when you activate a thick border, but not with the thin default border.