private void CreateNode(int Type, Vector2 position) { Node node = NodeRules.CreateNode(Type); node.position = new Rect(ViewportService.FromScreenPoint(position), new Vector2(100, 100)); configuration?.AddNode(node); }