     @browserDragFile = GetBrowserFileFromUIElement(uiElement);
 }
 
+Vector3 GetNodeSize(Node@ node)
+{
+    CollisionShape@ shape = node.GetComponent("CollisionShape");
+    if (shape !is null)
+        return shape.size;
+
+    Drawable@ object = node.GetComponent("Drawable");
+    if (object !is null)
+        return object.boundingBox.size;
+
+    return Vector3(0, 0, 0);
+}
+
 void HandleBrowserFileDragEnd(StringHash eventType, VariantMap& eventData)
 {
     if (@browserDragFile is null)

        {
            AssignMaterial(model, browserDragFile.resourceKey);
        }
    }

    browserDragFile = null;

    if (element !is null)
        return;

    Node@ createdNode = null;
    if (browserDragFile.resourceType == RESOURCE_TYPE_MATERIAL)
    {
        StaticModel@ model = cast<StaticModel>(GetDrawableAtMousePostion());
