i3 has no 'maximize' function, you want to focus your window and you might want to make the window fullscreen.
You can use this snipped:
winid="$(printf "%u\
" $windowid 2>/dev/null)
i3-msg "[id=\"$winid\"] "focus; fullscreen"
How you get the `windowid` from the pid is described in this question.