GimpUi.get_monitor_at_pointer

function get_monitor_at_pointer(): Gdk.Monitor {
    // Gjs wrapper for gimp_get_monitor_at_pointer()
}
  
Returns

the Gdk.Monitor where the pointer is.