Just to chime in, I had my floors refinished after I’d moved in. It wasn’t ideal, but also wasn’t possilble to refinish prior to moving in.
I moved everything from upstairs downstairs then after the upstairs was dry moved everything upstairs. It was manageable and my floors are beautiful.
The sander had a bag attached that captured most (but certainly not all) of the dust.