They don't sell or buy anything in their Trade window.
But if they have a Trade window selectable, you can use roleplaying commands to barter with them.
They are much more susceptible to trade-related commands of that kind when they are in this state.