How can I customize my mouse cursor?

Hello everyone. have managed to do this using code in the header. But I can’t get the pointer to be custom as well. Does anyone know if this can be done via code in the header? Thanks!