This function returns the window's display.
If successful, the return value is the window's display. Otherwise the function returns DV_NULL.