SWindow Freezes Game when Interacted With

I have a button in my viewport that opens up a separate SWindow. Whenever this new window is clicked on or interacted with in any way the game freezes. Once you stop interacting with the SWindow the game resumes. Why is this happening and how do I get the game not to freeze when interacting with a seperate SWindow?