I'm surprised no one has written this yet.
Just a simple code to open a Store inbox, you can customize it yourself since it only opens the Store Inbox when it's closed.
auto(1000)
if windowcount("Your Store Inbox") < 1 then
openitem("Store Inbox")
wait(200)
resizewindows()
end