The fixture that drains into the floor drain shall drain indirectly.
The floor drain though must tie into the main waste line.
It could tie indirectly, but would not pass under new construction provision.
I would tie into the main stack, vent it properly so that it is not wet vented.
“Your best interest is secured by making the right decisions the first time.”