Where did this 5 come from? is it a random number you picked?

Maybe a better test is to start up a widget and grab it's window id and set it and check if the window was placed inside if your widget?

Also what if an invalid window id was passed such as if I passed a string value?