Scale the (still hard-coded) border in pixels by the content scale factor for the platforms where this needs to be done, i.e. not wxGTK nor wxOSX where the underlying toolkit already does it.
Scale the (still hard-coded) border in pixels by the content scale factor for the platforms where this needs to be done, i.e. not wxGTK nor wxOSX where the underlying toolkit already does it.