private void MouseDragElementBehavior_DragFinished(object sender, System.Windows.Input.MouseEventArgs e)
        {
            if (e.Source is Entity entity &&
                sender is MouseDragElementBehavior behavior &&
                !double.IsNaN(behavior.X) &&
                !double.IsNaN(behavior.Y))
            {
                var windowCoordinates = new Point(behavior.X, behavior.Y);
                var screenCoordinates = PointToScreen(windowCoordinates);
                var parentCoordinates = EditorCanvas.PointFromScreen(screenCoordinates);

                var viewModel = entity.DataContext as EntityViewModel;
                viewModel.X = (int)parentCoordinates.X;

                viewModel.Y = (int)parentCoordinates.Y;
            }
        }