How to setup a surface oriented mouse cursor

So you want your cursor to appear the same even if a part of it goes outside the surface? Like in the picture?