Let us say i want to connect my laptop to my office machine, which uses dual monitors. I can see some of the windows icons showing up in the taskbar, but i cannot see the window. How can I click any button on that window?

Here is the solution:

Right click on the window you want on the taskbar, select move, hit any arrow button, move your mouse.