Optimize the get_focus_window function

1. Using stack
2. Implement the isExpectWindow function
        We can judge the window using it.