Right-click in your bags — the items land in the tab you have open, and stacks are topped up first.
Blizzard puts right-clicked items into the first free tab — Smart Bank Tab Deposit puts them into the tab you have open.