This same excerpt came up some time ago in this thread:
My workaround managed to create the visual effect - not an entirely satisfactory solution, but it might do for what you need.
Here is a screen shot:
Here is a minimal Dorico project containing that bar and a few preceding bars:
Brahms Intermezzo - edited v2.dorico (469.6 KB)
@Juerg_Loeffler 's solution is probably better, and is another way of doing it.