In an earlier post, Four Attacks per Turn at Level 5. Yes! Really?, I looked at the hash that the 5R rules created with two weapon fighting. This is a related, but much simpler topic: How does drawing and stowing weapons work and can a character benefit from dueling feat (use only one weapon) and Duel Wielder / Two-Weapon Fighting Style in the same round?
I'll gather the rules snippets that apply and link a relevant video but first, I'll get to the conclusion and an example.
TLDR: Each attack can be accompanied by stowing -or- drawing a weapon (two with two weapon fighting feat) before -or- after the actual attack. It is possible (and bizarre) for a character to benefit from who has the Duel Wielder / Two-Weapon Fighting Style and the Dueling feat in the same combat round.