Nowadays, sharing resources over multiple devices is a common task. Some approaches consist in sharing a common workspace among users, or moving user interface elements between displays. But distributing interaction between displays is critical in cross-device environments. In this work, we present a technique for distributing content and devices in shared workspaces using cross-device displays. This technique, referred to as the virtual spatially aware technique, allows the creation of virtual shared displays and the coordination of cross-device interactions. By using this technique, we propose a method for arranging content and devices on virtual displays. We also present a prototype that supports the virtual spatially aware technique. This prototype has been built using web technologies, and it is able to run in any modern web browser.