[Solved] Placing a fully defined picture absolutely at any point inside a path picture

Z.J Asks: Placing a fully defined picture absolutely at any point inside a path picture
The following example generates a rack switch with a single port.

The front oft the rack switch is defined by a path picture.

I add the port to path picture by using node and i am placing the node via coodinates. Unfortunately the coordinates of the port are ignored. Instead of this the port is placed at the center oft the path picture.

Is there a general approach to place a fully defined picture like, the port, absolutely at any point inside a path picture via coordinates?

Code:
documentclass[tikz,border=3mm]{standalone}
usetikzlibrary{calc, shadings, shadows, shapes.arrows}
usetikzlibrary{positioning}


tikzset{
    port/.code={% style, size, label
        draw[port/rect] (0,0) rectangle (pgfkeysvalueof{/tikz/port/tr});
        draw[fill=black] (.1cm,0cm) rectangle (.9cm,.5cm);
        draw[fill=black] (.2cm,.5cm) rectangle (.8cm,.7cm);
        draw[fill=black] (.4cm,.7cm) rectangle (.6cm,.8cm);    
    },
    port/.cd,
    rect/.style={thin, fill=gray!20},
    tr/.initial={1cm,1.5cm},
    label/.initial={},
    /tikz/.cd,
    rack switch/.style={
        name=#1,
        fill=white, draw,
        minimum width=20cm,
        minimum height=4cm,
        path picture={
            anchor=center;
            node(port1)[port] at (-2,2){};         
        }
    }
}   

begin{document}
    begin{tikzpicture} 
        node(Switch1) at (0,0) [rack switch=switch1]{};
    end{tikzpicture}   
end{document}

Ten-tools.com may not be responsible for the answers or solutions given to any question asked by the users. All Answers or responses are user generated answers and we do not have proof of its validity or correctness. Please vote for the answer that helped you in order to help others find out which is the most helpful answer. Questions labeled as solved may be solved or may not be solved depending on the type of question and the date posted for some posts may be scheduled to be deleted periodically. Do not hesitate to share your response here to help other visitors like you. Thank you, Ten-tools.