/proc/icon(icon, icon_state, dir, frame, moving)
Arguments:
icon: An icon file, or /icon.
icon_state: Optional, the icon state within the icon to retrieve.
dir: Optional, the direction to retrieve.
frame: Optional, the animation frame to retrieve.
moving: If truthy, extracts only movement states; 0 for non-movement states; null for both.

This constructs a new /icon, similar to using new /icon(), with the specified icon.