Vector2 get_screen_size(screen: int = -1) const
Returns the dimensions in pixels of the specified screen. If screen is [/code]-1[/code] (the default value), the current screen will be used.
In an iMac 5K it returns the native resolution: (5120, 2880) also with allow_hidpi
disabled in project settings.