DrRacket (or underlying libraries) may and probably should improve. So this is a right place to report. Given the current proliferation of HiDPI displays it is of great concern.
I just suggested a temporary workaround, the same I've applied myself, till the OS, drivers or apps are able to fix it.
Something you could try/investigate is scaling per app on Windows. It seems that last Windows releases allow something along those lines. I cannot verify it, though:
http://news.kynosarges.org/2017/04/16/dpi-settings-in-windows-10-creators-update/
Another workaround that some users on Unix systems may find helpful and doesn't involve changing display resolutions, or dealing with xrandr, or something like that is to set text scaling as they like for everything in the Desktop Environment, but make DrRacket override that setting when running via the environment variable PLT_DISPLAY_BACKING_SCALE set to 1. This actually reverts the general dpi setting and so fixes artifacts:
https://docs.racket-lang.org/gui/windowing-overview.html#%28part._display-resolution%29
I have investigated a bit further on this issue. This is a quick report of my findings thus far. If I can provide more useful information, I'll do it in a new post.
To summarize what I have found.
1. Artifacts are still there, though mitigated, even after applying the last proposed workarounds.
2. At least on Unix systems, the issue seems to be completely fixed by falling back to GTK2.
More details.
* Basic Machine description
Platform: Dell XPS 13 9360. Graphics: Iris Plus Graphics 640 driven by the i915 module (default chipset settings)
OS: Ubuntu 16.04.3 (Linux kernel: 4.10.0-33-generic)
* Description of the issue
Ghosting lines and/or little squares screen artifacts appears on the drracket canvas while scrolling. Much more prominent when text is scaled and/or when graphical objects like comment boxes are included in the code.
* Fix
On Unix systems, falling back to GTK2 when running drracket seems to completely fix the issue:
PLT_GTK2=1 drracket
Jaroslaw, I don't know about Windows but if you can do something like this when running drracket, you may fix the problem by now.