State is a tool helping your Macbook remember the position of windows when plugging and unplugging to a docking station.
It is free and open source and apparently does what it should. The catch with it is that it might change your keyboard shortcuts, which can be annoying.
Find out more: