Add window smart resizing binding and function call.