Was it ever discussed here or anywhere why right-clicking on an open inventory window (Like a barrel or chest) doesn't close it? It's a very common feature in the more popular RPG games similar to Divinity, and it's extremely convenient.
I don't think there's a reason to right-click on any items in the barrel or chest itself, as of right now, so it's not like it was disabled to ensure no mis-clicks occur.