Attach masking tape to the gaps on cupboard doors to prevent any dust entering. The same applies to wardrobes, linen cupboards and doorways to rooms not being sanded.
Alternatively, a sheet or a plastic dropsheet can be draped over cupboards, bookshelves and doorways.