A DSLR uses a mirror to reflect light coming in from the lens into the viewfinder. So when framing, the sensor is not involved. In fact framing can be done with a DSLR power-off since it is all optical.
Anything that happens to the sensor, such as movement for stabilization, therefore has no impact on what you see in the viewfinder.
Video is off-topic here but you should at least know that on a DSLR, the video is not previewed by the viewfinder, instead it is shown on the rear LCD which does get its data from the sensor. In theory that means that you could see the effect of stabilization but most camera turn off sensor-shift when video is being recorded because the sensor-shift system is noisy and would be recorded in the audio (it is similar to the buzzing sound of an insect while motors are working to move the sensor along up to 5 axis to compensate for movement).