Implement window expand functionality (#53)