There’s a layout option to hide bar rests in empty bars and retain the spacing, but that affects all empty bars in the layout. You could, as of Dorico 4.3, also add a dummy whole note in those bars and hide those notes.
I suppose this is the new efficient workaround. I’m afraid the former (and more convoluted) workaround has been described soooo many times in the forum that it will take some time for the user base to make the shift
Note that suppressing playback for the hidden notehead is a very good idea!